package Ms.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.sun.istack.internal.NotNull;
import Ms.entity.enums.ProjectStatus;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
@TableName("project_info")
public class Project {
    @TableId(type = IdType.AUTO)
    private Long projectId;

    @NotBlank(message = "项目名称必填")
    private String projectName;

    private String description;

    @NotNull
    private ProjectStatus status; // 枚举：DRAFT/SUBMITTED/APPROVED/REJECTED

    private Long creatorId; // 创建者ID（学生/教师）

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableLogic
    private Integer deleted;
}


